package com.cn.byjk.controller;

import com.cn.byjk.service.ManageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.math.BigDecimal;

@RestController
@RequestMapping("/manage")
public class ManageMoneyController {
    @Autowired
    private ManageService manageService;

    @GetMapping("/getMoney/{userid}")
    public BigDecimal getMoney(@PathVariable("userid") Long userid){
        return manageService.getMoney(userid);
    }
}
